import java.util.Scanner;

public class CoilArray {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int index = 2;
        int num = 1;
        while (index < 39) {
            for (int i = 0; i < index; i++) {
                num ++;
            }
            index ++;
        }
        System.out.println(num);
        System.out.println(num + 20);
        System.out.println(num + 39);
        scan.close();
    }
}
